package com.wanhe.base.model.disgn;

import com.wanhe.base.websocket.model.response.BaseResponse;

import java.util.ArrayList;

/**
 * Created by XieZaiWei on 2017/4/26.
 * 已下菜单
 */

public class OrderedBill extends BaseResponse {
    private String typeId;
    private String typeName;
    private ArrayList<TableBillModel> billDishes;

    public OrderedBill(){
        billDishes = new ArrayList<>();
    }


    public ArrayList<TableBillModel> getArrTableBill() {
        return billDishes;
    }

    public void setArrTableBill(ArrayList<TableBillModel> arrTableBill) {
        this.billDishes = arrTableBill;
    }

    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    @Override
    public boolean equals(Object obj) {
        if(obj instanceof OrderedBill){
            OrderedBill orderedBill = (OrderedBill)obj;
            return this.typeId.equals(orderedBill.getTypeId());
        }
        return false;
    }

    @Override
    public int hashCode() {
        return this.typeId.hashCode();
    }
}
